---
title: XML.parse()
api: XML.parse
---

## Description

<Summary/>

The input to this method is expected to be a string. If you have a [Data](/reference/api/Data) input, use [XML.decode()](/reference/api/XML/decode) instead.

## Syntax

``` js
XML.parse(text)
```

## Parameters

<Parameters/>

## See Also

* [XML](/reference/api/XML)
* [XML.decode()](/reference/api/XML/decode)
* [XML.encode()](/reference/api/XML/encode)
* [XML.stringify()](/reference/api/XML/stringify)
